package main

import (
	"./config"
	_ "./controller"
	"github.com/gpmgo/gopm/modules/log"
	"net/http"
)

func main() {
	log.Verbose = true

	config.Conf.UseFileCache = false

	http.Handle("/js/", http.StripPrefix("/js/", http.FileServer(http.Dir("examples/js"))))
	http.Handle("/css/", http.StripPrefix("/css/", http.FileServer(http.Dir("examples/css"))))
	http.Handle("/images/", http.StripPrefix("/images/", http.FileServer(http.Dir("examples/images"))))
	http.Handle("/md/", http.StripPrefix("/md/", http.FileServer(http.Dir("md"))))

	http.ListenAndServe(":80", http.DefaultServeMux)

}
